package entity;

public class Seat {
    int seatId;
    int trainId;
    String type;
    String price;
    int ticketNumber;
    int number;

    public Seat(int trainId, String type, String price,int number ,int ticketNumber) {
        this.trainId = trainId;
        this.type = type;
        this.price = price;
        this.ticketNumber = ticketNumber;
        this.number = number;
    }

    public Seat() {

    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getSeatId() {
        return seatId;
    }

    public void setSeatId(int seatId) {
        this.seatId = seatId;
    }

    public int getTrainId() {
        return trainId;
    }

    public void setTrainId(int trainId) {
        this.trainId = trainId;
    }

    public int getTicketNumber() {
        return ticketNumber;
    }

    public void setTicketNumber(int ticketNumber) {
        this.ticketNumber = ticketNumber;
    }

    @Override
    public String toString() {
        return "Seat{" +
                "seatId='" + seatId + '\'' +
                ", trainId='" + trainId + '\'' +
                ", type='" + type + '\'' +
                ", price='" + price + '\'' +
                ", number=" + number +
                '}';
    }
}
